<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
    class Template extends MX_Controller
    {
        function __construct() {
            parent::__construct(); 
                                               
        }        
        function header()
        {                                   
            $option = new Option();
            $option->where('option_name','template')->get();
            $theme = $option->option_value;
            
            $data['menu_top'] = $this->Menu_model->get_menus(0,1,38);
            $this->load->view('front_end/'.$theme.'/header',$data);
        }        
        function footer()
        {             
            $option = new Option();
            $option->where('option_name','template')->get();
            $theme = $option->option_value;
            
            $data['data'] = '';
            $this->load->view('front_end/'.$theme.'/footer',$data);
        }
        function left()
        {             
            $option = new Option();
            $option->where('option_name','template')->get();
            $theme = $option->option_value;
            
            $data['data'] = '';
            $this->load->view('front_end/'.$theme.'/left',$data);
        }
        function right()
        {             
            $option = new Option();
            $option->where('option_name','template')->get();
            $theme = $option->option_value;
            
            $data['data'] = '';
            $this->load->view('front_end/'.$theme.'/right',$data);
        }                          
    }
?>
